package com.rzjm.exercise.module.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rzjm.exercise.common.utils.ExcelColumn;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 问卷调查的用户填报数据对象 survey_user_record
 *
 * @author ruoyi
 * @date 2021-09-05
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("survey_user_record")
public class SurveyUserRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 问卷调查id
     */
    private Integer surveyId;

    /**
     * 业主微信id
     */
    private Integer wxUserId;

    private Double lng;
    private Double lat;

    private Integer townId;
    private Integer villageId;

    private Integer roomId;

    @ExcelColumn(value = "房主姓名", col = 4)
    private String holderName;
    @ExcelColumn(value = "房主电话", col = 5)
    private String holderPhone;
    @ExcelColumn(value = "户号", col = 3)
    private String roomNo;

    /**
     * 业主微信id
     */
    private Integer sysUserId;


    private String nickName;

    private String phoneNum;

    /**
     *  详情表名
     */
    private String recordTableName;

    /**
     * 填报时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ExcelColumn(value = "上报时间", col = 8)
    @TableField(exist = false)
    private String createTimeStr;

    @ExcelColumn(value = "所属乡镇", col = 1)
    @TableField(exist = false)
    private String townName;

    @ExcelColumn(value = "所属村居", col = 2)
    @TableField(exist = false)
    private String villageName;

    @ExcelColumn(value = "包保责任人", col = 6)
    @TableField(exist = false)
    private String managerName;

    @ExcelColumn(value = "包保责任人", col = 7)
    @TableField(exist = false)
    private String managerPhone;

    @ExcelColumn(value = "排查隐患", col = 9)
    @TableField(exist = false)
    private String paiChaYinHuan;


    @ExcelColumn(value = "其他隐患", col = 10)
    @TableField(exist = false)
    private String otherYinHuan;


    @TableField(exist = false)
    private String adminName;
}
